#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QMenuBar>
#include <QTextEdit>
#include "easyInput/easyinput.h"
#include <QMovie>

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

#define fileName "/even/message.txt"

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();
    //判断是否填写登录信息
    int judge_sigin_message();
private slots:
    void on_Sigin_Btn_clicked();
    void slotHideInput();
    //显示动态背景
    void show_back_gif();
signals://自定义信号
    // 给主功能界面发送信号
    void funSignal(QString name);
private:
    Ui::Widget *ui;
    void write_User_message_lineEdit();
    void save_User_message_file();
    void widgetInit();
    easyInput *eInput;
    bool inputFlag;//是否开启输入法标志位
    bool eventFilter(QObject *watched,QEvent *event);
};
#endif // WIDGET_H
